package org.lq.shopping.service.impl;

import java.util.List;

import org.lq.shopping.dao.ShopVIPLevelDao;
import org.lq.shopping.dao.impl.ShopVIPLevelDaoImpl;
import org.lq.shopping.entity.ShopVIPLevel;
import org.lq.shopping.service.ShopVIPLevelService;

public class ShopVIPLevelServiceImpl implements ShopVIPLevelService {

	ShopVIPLevelDao shopVIPLevelDao = new ShopVIPLevelDaoImpl();
	@Override
	public boolean add(ShopVIPLevel t) {
		return shopVIPLevelDao.add(t)>0;
	}

	@Override
	public boolean delete(int id) {
		return shopVIPLevelDao.delete(id)>0;
	}

	@Override
	public boolean update(ShopVIPLevel t) {
		return shopVIPLevelDao.update(t)>0;
	}

	@Override
	public List<ShopVIPLevel> findAll() {
		return shopVIPLevelDao.findAll();
	}

}
